<%= link_to(
  content_tag(:span, language.label(options[:linkname])).html_safe,
  show_alchemy_page_path(
    language.pages.language_roots.first,
    locale: prefix_locale?(language.code) ? language.code : nil
  ),
  class: [
    language.code,
    Alchemy::Language.current.id == language.id ? 'active' : nil,
    languages.first == language ? 'first' : nil,
    languages.last == language ? 'last' : nil
  ].compact,
  title: options[:show_title] ? Alchemy.t(
    "#{language.code}.title",
    scope: 'language_links',
    default: language.name
  ) : nil
) %>
